<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>显示</title>
<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="/bsc/static/common/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="/bsc/static/common/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="/bsc/static/common/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="/bsc/static/css/personal.css" media="all">
<script type="text/javascript">
// $("#qdid").val(${map.qdid});
// $("#enroll_mode").val(${map.enroll_mode});
// $("#wechat_status").val(${map.wechat_status});


function tonull(){
	$("#mobile").val("");
	$("#qname").val("");
	$("#born_date").val("");
	$("#beauty_num").val("");
	$("#bag_num").val("");
}

function toadd(){
	document.forms[0].action="/bsc/users/toadd";
	document.forms[0].submit();
}

//上一页
function up(){
	document.forms[0].action="/bsc/up/upList?page="+${info.prePage};
	document.forms[0].submit();
};
//下一页
function next(){
	document.forms[0].action="/bsc/up/upList?page="+${info.nextPage};
	document.forms[0].submit();
};

</script>
</head>
<body>
<section class="layui-larry-box">
<blockquote class="layui-elem-quote news_search">
<form class="form-inline" role="form" action="/bsc/up/upList" method="post">

<div class="form-group">
账号:<input type="text" class="form-control" name="mobile" placeholder="请输入手机号" value="${map.mobile }" id="mobile">
</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<div class="form-group">
姓名:<input type="text" class="form-control" name="qname" placeholder="请输入姓名" value="${map.qname }" id="qname">
</div>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<div class="form-group">
生日筛选:<input type="date" class="form-control" name="born_date" placeholder="请输入姓名" value="${map.born_date }" id="born_date">
</div>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<div class="form-group">
颜值:<input type="text" class="form-control" name="beauty_num" placeholder="请输入颜值数量" value="${map.beauty_num }" id="beauty_num">
</div><br><br>

<div class="form-group">
礼包:<input type="text" class="form-control" name="bag_num" placeholder="请输入礼包数量" value="${map.bag_num }" id="bag_num">
</div>


&nbsp;&nbsp;&nbsp;&nbsp;
<button type="button"   class="btn btn-danger glyphicon glyphicon-plane" onclick="tonull()">重置</button>
<button type="submit"   class="btn btn-info glyphicon glyphicon-search " >查询</button>

</blockquote>

<div class="layui-form news_list">
                    <table class="layui-table">
					    <colgroup>
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="15%"> 
					</colgroup>
					<thead>
						<tr>
							<th>头像</th>
							<th>会员号</th>
							<th>账号</th>
							<th>姓名</th>
							<th>昵称</th>
							<th>性别</th>
							<th>出生日期</th>
							<th>持有颜值</th>
							<th>礼包</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody class="news_content"  >
						<c:forEach items="${info.list }" var="users">
						<tr>
							<td><img alt="" width="80" height="50" src="/bsc${users.photo }"></td>
 							<td>${users.custom_user_id }</td> 
 							<td>${users.mobile }</td> 
							<td>${users.username }</td>
							<td>${users.nikename }</td>
							<td>
							<c:if test="${users.sex=='1' }">男</c:if>
							<c:if test="${users.sex=='2' }">女</c:if>
							<c:if test="${users.sex=='3' }">保密</c:if>
							</td>
							<td><fmt:formatDate value="${users.born_date }" pattern="yyyy-MM-dd"/></td>
							<td>${users.beauty_num }</td>
							<td>${users.bag_num }</td>
							<td>
							    <a class="btn btn-success" href="/bsc/up/upMuchs/${users.custom_user_id }"><i class="glyphicon glyphicon-search"></i>查看资料</a>
							    <a class="btn btn-warning" href="/bsc/up/upOrderList/${users.custom_user_id }"><i class="glyphicon glyphicon-eye-open"></i> 查看详情</a>
							</td>
						</tr>
						</c:forEach>
					</tbody>
					</table>
                     <div class="larry-table-page clearfix">
				          <a class="layui-btn layui-btn-normal" href="javascript:;" onclick="up()">上一页</a>
				          &nbsp;&nbsp;&nbsp;
				          <a class="layui-btn layui-btn-normal" href="javascript:;" onclick="next()" >下一页</a>
			         </div>
		</div>
</form>
</section>
</body>
<script type="text/javascript" src="/bsc/static/common/layui/layui.js"></script>
<script type="text/javascript" src="/bsc/static/js/newslist.js"></script>
<script type="text/javascript" src="/bsc/static/common/bootstrap/js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="/bsc/static/common/bootstrap/js/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
</html>